@import '~components/constants.scss';

.tagPicker .tag,
.inline-tag {
  height: 22px;
  border-radius: var(--default-border-radius);
  background: $grey_dark;
  color: #fff;
  line-height: 22px;
  vertical-align: top;
  margin-bottom: 8px;
  margin-right: 8px;
  font-size: 12px;
  font-weight: bold;
  padding: 0 4px;
  padding-left: 6px;

  &.notag {
    background: $grey_background;
    color: $grey_dark;
  }

  .remove {
    opacity: 0.5;
    cursor: pointer;
    &:hover {
      opacity: 1;
    }
  }
  .remove:before {
    margin: 0px;
  }

  &.disabled {
    opacity: 0.5;
  }
}

.tagPicker {
  .tag_selectable {
    display: flex;
    .tag_part {
      flex: 1;
    }
    .edit {
    }
  }

  .secondary-text {
    height: 22px;
    line-height: 22px;
  }

  &.disabled {
    opacity: 0.5;
    pointer-events: none;
  }

  .pickerInput {
    padding-left: 5px;

    &.readOnly {
      padding-left: 0px;
    }
  }
  .itemSelected {
    display: inline-block;
    .close {
      font-size: 8px;
      margin-left: 5px;
      opacity: 0.4;
      display: inline-block;
      margin-right: -1px;
      bottom: 0px;
      position: relative;
    }
    .close:hover {
      opacity: 0.8;
      cursor: pointer;
    }
  }
  .itemContoured {
    padding: 1px 6px;
    display: inline-block;
    background-color: $primary;
    box-sizing: border-box;
    color: #fff;
    border-radius: var(--default-border-radius);
    margin: 5px 0px;
    margin-right: 5px;
    height: 18px;
    line-height: 16px;
    font-size: 12px;
  }
  .menu {
    .itemContoured {
      margin: 3px 0;
    }
  }
}

.inline-tag {
  display: inline-block;
  margin-bottom: 0px;
  vertical-align: middle;
}
